<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<title>帐号添加界面</title>

		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta charset="utf-8">

		<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="/css/bootstrap-responsive.min.css">
		<link rel="stylesheet" type="text/css" href="/css/style.css">
		<link rel="stylesheet" type="text/css" href="/css/login_screen.css">

		<style type="text/css">
		body
		{
			padding-coop: 60px;
			padding-bottom: 40px;
		}
		.sidebar-nav
		{
			padding: 9px 0;
		}
		</style>
		<!--[if lt IE 9]>
		<script src="/js/html5.js"></script>
		<![endif]-->
		<!--[if IE 6]>
				<link href="/css/ie6.min.css" rel="stylesheet">
		<![endif]-->
		<script type="text/javascript" src="/js/jquery.min.js"></script>
		<script type="text/javascript" src="/js/jquery.cookie.js"></script>
		<script type="text/javascript" src="/js/jquery.i18n.min.js"></script>
		<script type="text/javascript" src="/js/bootstrap.min.js"></script>
		<!--[if IE 6]>
		<script src="/js/ie6.min.js"></script>
		<![endif]-->
		<script type="text/javascript" src="/js/jquery.min.js"></script>
		<script type="text/javascript" src="/js/app.js"></script>
		<script type="text/javascript">
				function checkInput(){
				var nick=document.getElementById("nick");
				if (nick.value.length==0){
					alert("请输入帐号：")
					return false
				}
				var email=document.getElementById("email");
				if (email.value.length==0){
					alert("请输入帐号：")
					return false
				}
				var pwd=document.getElementById("pwd");
				if (pwd.value.length==0){
					alert("请输入密码：")
					return false
				}
				return true
				}
				function backHome(){
					window.location.href="/";
					return false;
				}
				function hide_error(){
					$("div#error").hide();
				};
		</script>
	</head>
	<body style="background: url(/image/tt2bg.png) repeat;">
		<div class="container">
			<div class="row-fluid">
				<div class="span12">
					<div class="login">
						<div class="container" style="color:white;">
							<center>
							<h1>帐号注册</h1>
							<div class="login-area">
								<form  role="form" method="post" action="/register">
									<div class="input-prepend"  style="padding:5px">
										<span class="add-on"><img src="/image/login.nick.png" class="licon"/>昵称</span>
										<input  id="nick" name="nick" type="text" placeholder="昵称" value="">
									</div>
									<div class="input-prepend"  style="padding:5px">
										<span class="add-on"><img src="/image/login.mail.png" class="licon"/>邮箱</span>
										<input  id="email" name="email" type="text" placeholder="邮箱" value="">
									</div>
									<div class="input-prepend"  style="padding:5px">
										<span class="add-on"><img src="/image/login.lock.png" class="licon"/>密码</span>
										<input id="pwd" name="pwd" type="password" placeholder="密码" value="">
									</div>
									<div class=""  style="padding:5px">
										<button class="btn btn-large btn-inverse login" type="submit" onclick="return checkInput();" >注册</button>
									</div>
									<div id="error" class="alert alert-danger {{.error_hide}}">
										<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onclick="hide_error();">&times;</button>
										<strong>注册失败!</strong><p id="err_info">{{.error_infoamation}}</p>
									</div>
									
								</form>
							</div>
							</center>
						</div>
					</div>
					<!--/login-->
				</div>
				<!--/span-->
			</div>
			<!--/row-fluid-->
		</div>
		<!--/container-->
	</body>
</html>